import request from '@/utils/request'

// 查询学生上传作业列表
export function listStudentHomework(query) {
  return request({
    url: '/system/studentHomework/list',
    method: 'get',
    params: query
  })
}

// 查询学生上传作业详细
export function getStudentHomework(id) {
  return request({
    url: '/system/studentHomework/' + id,
    method: 'get'
  })
}

// 新增学生上传作业
export function addStudentHomework(data) {
  return request({
    url: '/system/studentHomework',
    method: 'post',
    data: data
  })
}

// 修改学生上传作业
export function updateStudentHomework(data) {
  return request({
    url: '/system/studentHomework',
    method: 'put',
    data: data
  })
}

// 删除学生上传作业
export function delStudentHomework(id) {
  return request({
    url: '/system/studentHomework/' + id,
    method: 'delete'
  })
}
